//
//  main.m
//  Demo0002
//
//  Created by zTercel on 12-12-25.
//  Copyright (c) 2012年 zTercel. All rights reserved.
//

#import <Foundation/Foundation.h>

int sum(int left, int right)
{
    return (left + right);
}

void print(int value)
{
    NSLog(@"you input value: %d", value);
    return;
}

void getInfomation(const char* name, unsigned int* age)
{
    NSLog(@"The personal's infomation:\n[name: \"%s\", age: %d]", name, *age);
}


int main(int argc, const char * argv[])
{
    @autoreleasepool {
        int left    = 100;
        int right   = -10;
        NSLog(@"sum(%d, %d) = %d", left, right, sum(left, right));
        print(102.3);
        
        const char* name    = "zTercel.yi";
        unsigned int age    = 25;
        getInfomation(name, &age);
    }
    return 0;
}

